//
// Created by v on 2021/5/7.
//

#include <iostream>

int split_each_poistion(int value)
{
    // 取十位数
    int tt = (value / 10) % 10;
    // 取百位数
    int tb = (value / 100) % 10;

    printf("number 10 position is %d, 100 position is %d\n", tt, tb);
    return 0;
}

int main(int argc, char **args)
{
    if (argc < 2)
    {
        printf("%s: [num]\n", args[0]);
        return 0;
    }
    int value = strtol(args[1], NULL, 10);
    split_each_poistion(value);
    return 0;
}
